package com.lizard.schedule.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Schedule bean
 */
public class WearSchedule implements Parcelable {

    /**
     * 状态：未结束
     */
    public static int STATUS_UNFINISHED = 1;

    /**
     * 状态：结束
     */
    public static int STATUS_FINISHED = 2;

    /**
     * 本地id
     */
    private int localId;

    /**
     * 文本内容
     */
    private String contentText;

    /**
     * 计划开始时间
     */
    private long beginTime;

    /**
     * 状态
     */
    private int status = STATUS_UNFINISHED;

    /**
     * 日期字符串
     */
    private String dateStr;

    /**
     * 时间字符串
     */
    private String timeStr;

    /**
     * 周字符串
     */
    private String dayOfWeekName;

    /**
     * "今天"、"明天"、"后天"、"昨天"、"前天"、""
     */
    private String dayNearby;

    public WearSchedule(){

    }

    protected WearSchedule(Parcel in) {
        localId = in.readInt();
        contentText = in.readString();
        beginTime = in.readLong();
        status = in.readInt();
        dateStr = in.readString();
        timeStr = in.readString();
        dayOfWeekName = in.readString();
        dayNearby = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(localId);
        dest.writeString(contentText);
        dest.writeLong(beginTime);
        dest.writeInt(status);
        dest.writeString(dateStr);
        dest.writeString(timeStr);
        dest.writeString(dayOfWeekName);
        dest.writeString(dayNearby);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<WearSchedule> CREATOR = new Creator<WearSchedule>() {
        @Override
        public WearSchedule createFromParcel(Parcel in) {
            return new WearSchedule(in);
        }

        @Override
        public WearSchedule[] newArray(int size) {
            return new WearSchedule[size];
        }
    };

    public int getLocalId() {
        return localId;
    }

    public void setLocalId(int localId) {
        this.localId = localId;
    }

    public String getContentText() {
        return contentText;
    }

    public void setContentText(String contentText) {
        this.contentText = contentText;
    }

    public long getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(long beginTime) {
        this.beginTime = beginTime;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getDateStr() {
        return dateStr;
    }

    public void setDateStr(String dateStr) {
        this.dateStr = dateStr;
    }

    public String getTimeStr() {
        return timeStr;
    }

    public void setTimeStr(String timeStr) {
        this.timeStr = timeStr;
    }

    public String getDayOfWeekName() {
        return dayOfWeekName;
    }

    public void setDayOfWeekName(String dayOfWeekName) {
        this.dayOfWeekName = dayOfWeekName;
    }

    public String getDayNearby() {
        return dayNearby;
    }

    public void setDayNearby(String dayNearby) {
        this.dayNearby = dayNearby;
    }
}
